import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart';

class RefreshUtils {
  static Widget classicHeader() {
    return ClassicHeader(
      refreshingText: 'refreshing'.tr,
      completeText: 'refresh_success'.tr,
      idleText: 'refresh'.tr,
      failedText: 'failure'.tr,
      releaseText: 'ready'.tr,
    );
  }

  static Widget classicFooter() {
    return ClassicFooter(
      loadStyle: LoadStyle.ShowWhenLoading,
      loadingText: 'loading'.tr,
      noDataText: 'no_data'.tr,
      idleText: 'pull_to_load'.tr,
      failedText: 'failure'.tr,
      canLoadingText: 'ready'.tr,
    );
  }
}
